package com.george.common.exception;

import lombok.Getter;

@Getter
public enum SystemErrorType implements ErrorType {

    SYSTEM_ERROR(-1, "网络异常,请稍候再试"),
    SYSTEM_ACCOUNT_ERROR(100021, "帐号或密码错误"),
    SYSTEM_PWD_ERROR(100024, "密码错误"),
    ARGUMENT_NOT_VALID(100003, "请求参数校验不通过"),
    UPLOAD_FILE_SIZE_LIMIT(100004, "上传文件大小超过限制"),
    METHOD_NOT_ALLOWED(400040, "不支持该方法"),
    /**
     * 网关服务
     */    
    GATEWAY_NOT_FOUND_SERVICE(200001, "服务未找到"),
    GATEWAY_ERROR(200002, "网关异常"),
    GATEWAY_CONNECT_TIME_OUT(200003, "网关超时");
    

    /**
     * 错误类型码
     */
    private int code;
    
    /**
     * 错误类型描述信息
     */
    private String msg;

    SystemErrorType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
